package com.layblog.service;

import com.layblog.common.lang.Result;
import com.layblog.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.layblog.shiro.AccountProfile;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author JackLin
 * @since 2021-07-30
 */
public interface UserService extends IService<User> {

    /**
     * 注册
     *
     * @author: jacklin
     * @since 2022/8/14 19:09
     **/
    Result register(User user);

    /**
     * 登录
     *
     * @author: jacklin
     * @since 2022/8/14 19:09
     **/
    AccountProfile login(String username, String password);
}
